home *** CD-ROM | disk | FTP | other *** search
- Path: news.unt.edu!news
- From: Steve Fogoros <sfogoros@hsc.unt.edu>
- Newsgroups: comp.lang.c
- Subject: Re: Help please: White background in text mode (Borland Turbo C)
- Date: Thu, 14 Mar 1996 23:57:19 -0800
- Organization: University of North Texas Health Science Center
- Message-ID: <314922DF.4F5D@hsc.unt.edu>
- References: <4iar74$l70@cs3.brookes.ac.uk>
- NNTP-Posting-Host: sfogoros.hsc.unt.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Krunchie wrote:
- >
- > I am writing a program that needs to have black text on a white
- > background ( Using Borland Turbo C ). The nearest I can achieve is black
- > text on a light grey background which is not good enough!!
- >
- > Does anybody know how I can achieve my goal? Is there some way I can
- > change the text mode background pallete of seven colours??
- >
- > Thanks
- >
- > Krunchie
- > Digital Dynamics - Dynamic Software solutions for a dynamic world
- > 95155580@brookes.ac.uk
-
- If you use an ANSI color terminal, use
-
- printf("%c[30;47m",0x1b);
-
- On PC make sure you have device=ansi.sys in config.sys. MS says meets ISO
- 6429.
-
- Other colors are:
-
- Foregnd Backgnd
- 30 40 Black
- 31 41 Red
- 32 42 Green
- 33 43 Yellow
- 34 44 Blue
- 35 45 Magenta
- 36 46 Cyan
- 37 47 White
-
-
- --
- Steve Fogoros, Academic Information Coordinator
- University of North Texas Health Science Center
- sfogoros@hsc.unt.edu
-